package com.woniuxy.rabbitmq83.publish;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * description: PublishProductor <br>
 * date: 2022/1/12 4:28 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
@Component
public class PublishConsumer1 {
    @Resource
    private AmqpTemplate amqpTemplate;

    @RabbitListener(queues = "one")
    public void received(String message) {
        System.out.println("1" + message);
    }
}
